Skip to content

[Feature] FiniteMPOHamiltonian compression#312

Merged
lkdvos merged 19 commits intomasterfrom
mpo-compression
Sep 5, 2025
Merged

[Feature] FiniteMPOHamiltonian compression#312
lkdvos merged 19 commits intomasterfrom
mpo-compression

Conversation

@lkdvos
Copy link
Copy Markdown
Member

@lkdvos lkdvos commented Aug 4, 2025

This is an implementation of the algorithm described in Parker et al, which allows compression of MPOHamiltonian objects without ruining the JordanMPOTensor structure.
There are still some questions about implementation details, tests and docs, and I would like to at least at the reference somewhere before merging, but I already wanted to add this here so people might start playing around with it.
Also, I would like to add the infinite version as well.

Importantly, this keeps the JordanMPOTensor structure but ruins the sparsity, so this is not in general something we always want to do. However, especially when working with quasi-2D systems, often terms of the form XiXi+1 and X_iX_i+L appear and can be efficiently compressed, which is not something that our MPO construction scheme would naturally do.

This implementation is loosely based on some reference code that I received some time ago by @LHerviou.

See also #311

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 4, 2025

Codecov Report

❌ Patch coverage is 98.50746% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/operators/ortho.jl 98.27% 2 Missing ⚠️
Files with missing lines Coverage Δ
src/MPSKit.jl 100.00% <ø> (ø)
src/algorithms/changebonds/svdcut.jl 94.11% <100.00%> (+1.26%) ⬆️
src/operators/jordanmpotensor.jl 81.59% <100.00%> (+0.18%) ⬆️
src/operators/ortho.jl 98.27% <98.27%> (ø)

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lkdvos lkdvos enabled auto-merge (squash) August 31, 2025 11:27
@lkdvos lkdvos requested a review from VictorVanthilt August 31, 2025 11:27
@lkdvos lkdvos added the enhancement New feature or request label Sep 1, 2025
Copy link
Copy Markdown
Member

@VictorVanthilt VictorVanthilt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the small comment this is good to go!

Comment thread src/operators/ortho.jl
Comment thread src/operators/ortho.jl
@lkdvos lkdvos disabled auto-merge September 5, 2025 16:49
@lkdvos lkdvos merged commit 1abb75c into master Sep 5, 2025
25 of 26 checks passed
@lkdvos lkdvos deleted the mpo-compression branch September 5, 2025 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants